package cn.seaboot.admin.core.bean;


import io.swagger.v3.oas.annotations.media.Schema;

import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * POJO
 * 系统字典 [t_sys_dictionary_config]
 * <p>
 *
 * @author Mr.css on 2018-08-11 22:29
 */
@Schema(description = "系统字典配置 数据字典配置[t_sys_dictionary_config] 实体类")
public class DictionaryConfig implements Serializable {
    private static final long serialVersionUID = -3441530353484637246L;
    /**
     * ID
     */
    @Schema(description = "ID")
    private Integer id;
    /**
     * 对应表名
     */
    @Size(max = 64)
    @Schema(description = "对数据库名")
    private String schemaName;
    /**
     * 对应表名
     */
    @Size(max = 64)
    @Schema(description = "对应表名")
    private String tableName;
    /**
     * 对应列名
     */
    @Size(max = 64)
    @Schema(description = "对应列名")
    private String columnName;
    /**
     * 对应列名
     */
    @Size(max = 64)
    @Schema(description = "对应列名")
    private String columnAlias;
    /**
     * 对应列名
     */
    @Size(max = 64)
    @Schema(description = "默认样式")
    private String defaultStyle;
    /**
     * 字典分类
     */
    @Schema(description = "是否可编辑")
    private Boolean editable;

    private List<Dictionary> list;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSchemaName() {
        return schemaName;
    }

    public void setSchemaName(String schemaName) {
        this.schemaName = schemaName;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public String getColumnAlias() {
        return columnAlias;
    }

    public void setColumnAlias(String columnAlias) {
        this.columnAlias = columnAlias;
    }

    public String getDefaultStyle() {
        return defaultStyle;
    }

    public void setDefaultStyle(String defaultStyle) {
        this.defaultStyle = defaultStyle;
    }

    public Boolean getEditable() {
        return editable;
    }

    public void setEditable(Boolean editable) {
        this.editable = editable;
    }

    public List<Dictionary> getList() {
        return list;
    }

    public void setList(List<Dictionary> list) {
        this.list = list;
    }

    @Override
    public String toString() {
        return "DictionaryConfig{" +
                "id='" + id + '\'' +
                ", schemaName='" + schemaName + '\'' +
                ", tableName='" + tableName + '\'' +
                ", columnName='" + columnName + '\'' +
                ", columnAlias='" + columnAlias + '\'' +
                ", defaultStyle='" + defaultStyle + '\'' +
                ", editable=" + editable +
                ", list=" + list +
                '}';
    }
}
